# -*- coding: utf-8 -*-
import os

from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

class BaseHandler(webapp.RequestHandler):
    def outputTemplate(self, values=None, view=None):  
        if values==None or view==None:
            values = {"msg":"n/a"}
            view = "msg_view.html"
        path = os.path.join(os.path.dirname(__file__), 'templates', view)
        self.response.out.write(template.render(path, values))
            
